IRCNow

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
openbsd:vmm [2020/02/18 10:25]
jrmu created
openbsd:vmm [2020/03/05 11:48] (current)
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 16: Line 18:
 <​code>​ <​code>​
 # vmctl create -s 20G user.qcow2 # vmctl create -s 20G user.qcow2
-# vmctl start -m 512M -L -i 1 -r install66.iso -d user.qcow2 user+</​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>​ 
 + 
 +<​code>​ 
 +# groupadd vmdusers 
 +# chown root:​vmdusers /​var/​run/​vmd.sock
 </​code>​ </​code>​