|
Size: 3284
Comment:
|
Size: 3320
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 101: | Line 101: |
| # as user vagrant | |
| Line 104: | Line 105: |
| cat vagrant.pub |
Contents
VagrantDebianTrixie64Box
Steps to create vagrant Debian trixie 64 box (Virtualbox) with LVM support.
Install in VM
1 cd ~
2 wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-13.7.0-amd64-netinst.iso
3 # start Virtualbox
4 # new
5 # name: debian-trixie-64
6 # linux debian 64 bit, unchecked proceed with unattended installation, next
7 # memory size 512 (to show text installer in debian) next
8 # create virtual hard disk
9 # create
10 # vdi next
11 # dynamic allocation next
12 # 64 GB create
13 # start
14 # select startup disk
15 # add
16 # open choose debian-13.7.0-amd64-netinst.iso
17 # start
18 # graphical install
19 # entering low memory mode , continue
20 # region europe
21 # country portugal
22 # keymap portuguese
23 # hostname debian
24 # domain name: <continue>
25 # root password: vagrant
26 # full name new user: vagrant
27 # user name for account: vagrant
28 # password for account: vagrant
29 # configure clock: Lisbon
30 # partition disks, guided, use entire disk and setup lvm
31 # select scsi3 sda 68.7 GB
32 # partition scheme all files
33 # write the changes and configure lvm? yes
34 # amount of volume group 67.7 GB
35 # write the changes to disk? yes
36 # scan extra installation disk? no
37 # debian archive mirror country: portugal
38 # deb.debian.org
39 # proxy continue
40 # participate package usage survey? no
41 # ssh server, standard sys utilities , continue
42 # install GRUB loader in your primary drive ? yes
43 # /dev/sda
44 # installation complete, continue
45 # login with root:vagrant
46
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 debian-trixie-64
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
