VagrantDebianBullseye64Box
Contents
Install in VM
1 wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.7.0-amd64-netinst.iso
2 # start Virtualbox
3 # new
4 # name: debianbullseye64
5 # linux debian 64 bit next
6 # memory size 512 next
7 # create virtual hard disk
8 # create
9 # vdi next
10 # dynamic allocation next
11 # 64 GB create
12 # start
13 # select startup disk
14 # add
15 # open choose debian-11.7.0-amd64-netinst.iso
16 # start
17 # graphical install
18 # low memory mode
19 # region europe
20 # country portugal
21 # keymap portuguese
22 # hostname debian
23 # domain name: <continue>
24 # root password: vagrant
25 # full name new user: vagrant
26 # user name for account: vagrant
27 # configure clock: Lisbon
28 # partition disks, guided, setup lvm
29 # select scsi3 sda 68.7 GB
30 # partition scheme all files
31 # write the changes and configure lvm? yes
32 # amount of volume group 68.2 GB
33 # write the changes to disk? yes
34 # scan extra installation disk? no
35 # debian archive mirror country: portugal
36 # deb.debian.org
37 # proxy continue
38 # participate package usage survey? no
39 # ssh server, standard sys utilities , continue
40 # install GRUB loader in your primary drive ? yes
41 # /dev/sda
42 # installation complete, continue
43 # login with root:vagrant
44
Test network in VM and update VM
Virtualbox guest additions
vagrant sudoers
login with root:vagrant
UseDNS in SSH
SSH insecure pair
Virtualbox disable audio
setting vm , audio, disable
Virtualbox first network adapter a NAT one
settings vm, network 1, NAT
Create vagrant box
1 cd /tmp
2 vagrant package --base debianbullseye64
3 /tmp/package.box
4 package.box
5
6 mkdir /tmp/test
7 cd /tmp/test
8 vagrant box add --name my-debbox C:\temp\package.box
9 vagrant init my-debbox
10 vagrant up
11 vagrant ssh # connect to the box
12 df -h
13 # /dev/mapper/debian--vg-root 62G 1.4G 58G 3% /
14 cd /vagrant
15 ls
16 md5sum package.box
17 # xxx package.box
18