Created
May 19, 2014 21:27
-
-
Save rtomaszewski/834a6790bd287e8d4c40 to your computer and use it in GitHub Desktop.
create a vm on isolated network
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (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