Skip to content

Instantly share code, notes, and snippets.

@shimomura1004
Last active February 14, 2022 16:04
Show Gist options
  • Save shimomura1004/fb73878ca423bde64ac4f66dd479b7ab to your computer and use it in GitHub Desktop.
Save shimomura1004/fb73878ca423bde64ac4f66dd479b7ab to your computer and use it in GitHub Desktop.
ブリッジ作成
# ip link add name xenbr0 type bridge
# ip link set dev enp0s3 master xenbr0
# ip link set dev xenbr0 up
仮想マシン作成
# xen-create-image --hostname=my-jessie --dir=/home/xen --dhcp --memory=256mb --pygrub --dist=jessie
仮想マシン起動
# xl create /etc/xen/my-jessie.cfg
起動確認
# xl list
コンソールに入る
# xl console my-jessie
コンソールから抜ける
Ctrl-]
仮想マシン停止
# xl destroy my-jessie
仮想マシン破棄
# xen-destroy-image --dir=/home/xen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment