Advertisement
Guest User

my-vm.cfg

a guest
Nov 21st, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # Configuration file for the Xen instance my-vm, created
  2. # by xen-tools 4.3.1 on Tue Nov 27 21:44:07 2012.
  3. #
  4.  
  5. #
  6. # Kernel + memory size
  7. #
  8. kernel = '/boot/vmlinuz-3.2.0-4-amd64'
  9. ramdisk = '/initrd.img-3.2.0-4-amd64'
  10.  
  11. vcpus = '1'
  12. memory = '1024'
  13.  
  14. #
  15. # Disk device(s).
  16. #
  17. root = '/dev/xvda2 ro'
  18. # This isn't great I know. It's just a temporary workaround for a problem
  19. disk = [
  20. 'file:/opt/vms/vm.disk,xvda2,w',
  21. 'file:/opt/vms/vm.swap,xvda1,w',
  22. ]
  23.  
  24.  
  25. #
  26. # Hostname
  27. #
  28. name = 'my-vm'
  29.  
  30. #
  31. # Networking
  32. #
  33. # Length of vifname is the same as in the actual .cfg. ip and mac are sensible too
  34. vif = [ 'vifname=vif-name-my-vm,ip=x.x.x.x ,mac=xx:xx:xx:xx:xx:xx' ]
  35.  
  36. #
  37. # Behaviour
  38. #
  39. on_poweroff = 'destroy'
  40. on_reboot = 'restart'
  41. on_crash = 'restart'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement