⇤ ← Revision 1 as of 2023-05-31 16:29:09
Size: 2926
Comment:
|
Size: 2926
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 20: | Line 20: |
open choose debian-11.6.0-amd64-netinst.iso | open choose debian-11.7.0-amd64-netinst.iso |
VagrantDebianBullseye64Box
Steps to create vagrant Debian bullseye64 box with LVM support.
Install in VM
1 wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.7.0-amd64-netinst.iso
2 new
3 name: debianbullseye64
4 linux debian 64 bit next
5 memory size 512 next
6 create virtual hard disk
7 create
8 vdi next
9 dynamic allocation next
10 64 GB create
11 start
12 select startup disk
13 add
14 open choose debian-11.7.0-amd64-netinst.iso
15 start
16
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
44 login with root:vagrant
== 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