Skip to content

Instantly share code, notes, and snippets.

@rtomaszewski
Created May 19, 2014 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtomaszewski/834a6790bd287e8d4c40 to your computer and use it in GitHub Desktop.
Save rtomaszewski/834a6790bd287e8d4c40 to your computer and use it in GitHub Desktop.
create a vm on isolated network
# (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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment