Search This Blog

Monday, May 19, 2014

Create a VM on an isolated network

For experimenting and testing we want to have a VM that is attached to an isolated network.
In the script below in the part 1) :
  • Take a clone of an existing VM
  • Create a new private network
  • Create and attached new interface to our VM
 Next in part 2) we configure statically an IP of 192.168.32.1 on this new interface.

# (1)
$ xe vm-copy vm=vm-10 new-name-label=gateway-vm
$ xe network-list
$ xe vif-create network-uuid=b211707c-0f56-b33e-22b0-ad1816914b8a device=3 vm-uuid=4fb0febb-5659-f9b5-abf6-21cd63632c5b
$ xe vif-plug uuid=02600ba0-b040-733f-bcce-e64661dcb352
$ xe console vm=gateway-vm
# (2)
root@gateway-vm:/etc/network# cat interfaces
iface eth2 inet static
address 192.168.32.1
netmask 255.255.255.0
# ifup eth2
# ip addr
# ip route
References

http://blogs.citrix.com/2013/03/18/virtual-hypervisor/
https://wiki.debian.org/NetworkConfiguration
http://docs.vmd.citrix.com/XenServer/4.0.1/reference/ch03s02.html

No comments:

Post a Comment