This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
openbsd:vmm [2020/02/18 10:25] jrmu created |
openbsd:vmm [2020/03/05 11:26] jrmu |
||
---|---|---|---|
Line 7: | Line 7: | ||
vm "user123" { | vm "user123" { | ||
memory 512M | memory 512M | ||
- | enable | ||
cdrom "/home/user/install66.iso" | cdrom "/home/user/install66.iso" | ||
disk "/home/user/user123.qcow2" | disk "/home/user/user123.qcow2" | ||
- | interface { switch "my_switch" } | + | interface { |
+ | locked lladdr aa:bb:cc:dd:ee:ff | ||
+ | switch "my_switch" | ||
+ | } | ||
} | } | ||
</code> | </code> | ||
Line 18: | Line 20: | ||
# vmctl start -m 512M -L -i 1 -r install66.iso -d user.qcow2 user | # vmctl start -m 512M -L -i 1 -r install66.iso -d user.qcow2 user | ||
</code> | </code> | ||
+ | |||
+ | You will need to add this crontab entry for a user to prevent the networking from timing out: | ||
+ | |||
+ | For openbsd: | ||
+ | |||
+ | <code> | ||
+ | @reboot /usr/bin/tmux new -d 'while true; do /sbin/ping -i5 38.81.163.128; done' \; | ||
+ | </code> | ||
+ | |||
+ | For debian: | ||
+ | |||
+ | <code> | ||
+ | @reboot /usr/bin/tmux new -d 'while true; do /usr/bin/ping -i5 38.81.163.128; done' \; | ||
+ | </code> | ||
+ | |||
+ | 17:37 < jrmu> In my /etc/vm.conf, I put this: | ||
+ | https://paste.debian.net/1133537/ the owner is set to | ||
+ | jrmu:vmdusers, and I added myself to vmdusers, but when | ||
+ | I run $ vmctl console jrmu, I get vmctl: console not | ||
+ | found . /var/run/vmd.sock is owned by root:wheel . | ||
+ | 17:44 < jrmu> oh wait, nevermind, I didn't load the VM | ||
+ | 17:46 < jrmu> srw-rw---- 1 root vmdusers 0B Feb 19 03:29 | ||
+ | vmd.sock | ||
+ | 17:46 < jrmu> vmctl: connect: /var/run/vmd.sock: Permission denied | ||
+ | 17:46 < jrmu> so it works if I set the owner to be jrmu:vmdusers but | ||
+ | not root:vmdusers, yet I want the socket to be usable by | ||
+ | all users, not just me | ||
+ | 17:56 < jrmu> ahh, I forgot to log out and log in, I wasn't showing up | ||
+ | in the vmdusers group, fixed | ||
+ |