Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Virt-Managerのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Virt-Manager
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Wikipedia:Virt-manager|virt-manager]] is a graphical user front end for the [[libvirt]] library which provides virtual machine management services. virt-manager interface makes it easy for the user to create, delete and manipulate virtual machines without going through the terminal. virt-manager mainly supports KVM but it can work with other hypervisors, such as Xen and LXC. == Installation == First follow the [[libvirt]] or [[LXC]] pages and ensure you can create virtual machines, then [[install]] the {{Pkg|virt-manager}} package. Install [[QEMU]] if needed. To use an {{ic|LXC}} connection [[enable/start]] the {{ic|libvirtd.service}} unit. To use a {{ic|QEMU}} connection [[enable/start]] the {{ic|libvirtd.socket}} unit. You can check the [[unit status]] to make sure the service is running. {{Note|The domain [https://www.libvirt.org/manpages/virsh.html#autostart autostart] feature requires {{ic|libvirtd.service}} to be enabled.}} == Configuration == === Basic configuration === Add yourself to the ''libvirt'' [[user group]]. It is also a good idea to ensure that any files/folders outside of virt-manager's default pool are owned by the {{ic|libvirt-qemu}} group, otherwise you might encounter permission errors when accessing files outside of the default pool. # chown "$USER":libvirt-qemu ''/path/to/vm/folder'' {{Tip|There are other ways to solve this issue, if you forget then virt-manager will ask for permission to change these settings for you.}} == Tips and tricks == === Non root KVM without Socket === {{Note|Enabling the [[systemd]] socket overrides this, only do this if you don't want to enable the socket}} To use as a normal user without [[root]] we need to configure KVM, this will also enable the libvirt networking components. Set the UNIX domain socket ownership to libvirt and the UNIX socket permission to read and write by changing the following: {{hc|/etc/libvirt/libvirtd.conf|2= ... unix_sock_group = 'libvirt' ... unix_sock_rw_perms = '0770' ... }} Add your user to the ''libvirt'' [[user group]]. Add your user to {{ic|/etc/libvirt/qemu.conf}}. Otherwise, QEMU will give a permission denied error when trying to access local drives. Search for {{ic|1=user = "libvirt-qemu"}} or {{ic|1=group = "libvirt-qemu"}}, uncomment both entries and change {{ic|libvirt-qemu}} to your user name or ID. Once edited it should look something like below. {{hc|/etc/libvirt/qemu.conf|2= # Some examples of valid values are: # # user = "qemu" # A user named "qemu" # user = "+0" # Super user (uid=0) # user = "100" # A user named "100" or a user with uid=100 # user = "''username''" # The group for QEMU processes run by the system instance. It can be # specified in a similar way to user. group = "''username''" }} Upon opening Virt-Manager, it will default to the system variant (root) of the QEMU connection. This can be changed to the user connection by going to: ''File'' > ''Add Connection''. Now select {{ic|QEMU/KVM User session}} as the Hypervisor and click OK. This will now auto-connect to the user session. You can now disconnect and remove the system connection if desired. === Networking === {{Note| *The virt-manager article focuses on using virt-manager and libvirt in '''user session''', which has limited networking capabilities (see [https://wiki.libvirt.org/FAQ.html#what-is-the-difference-between-qemu-system-and-qemu-session-which-one-should-i-use libvirt FAQ] for details). There are more networking possibilities when using the system variant (root). *Also look at [[libvirt]] in case of networking issues.}} To use a network bridge in user session it has to be setup in {{ic|libvirt}} system administration first. For this the {{ic|libvirt}} [[libvirt#Daemon|daemon]] must be running. When it is started successfully, the system variant (root) of the QEMU connection can be opened in virt-manager. Setup the bridge with the desired settings in the networking tab there. To be able to use the bridge in a user session virtual machine, setup the [[QEMU#Bridged networking using qemu-bridge-helper|qemu-bridge-helper]] according to your bridge setup . After that the bridge can be used at a virtual network that runs in virt-manager user session. ==== NAT - Bridged - Host-Only==== ===== NAT ===== NAT routes the VM over the same IP, this option is available in the Show hardware -> NIC and does not need any additional configuration ===== Bridged ===== Bridged mode acts as if the VM where it's own client in the network. In virt-manager you must select an interface for it. Which is different from virtualbox or vmware, where it gets automatically selected. In order to use Bridged you should create a [[#Creating a Virtual Interface|virtual interface]] with NAT. (It can be possible to use your own interface, but that might require additional configuration.) ===== Host-Only ===== A host only configuration, only permits network operations between host and guest. This option doesn't exist for virt-manager. Instead you must use a bridge connected to a virtual isolated Network. See: [[#Creating a Virtual Interface]] === Connection Details === ==== Creating a Virtual Interface ==== Go to Edit -> Connection Details -> add Following Options are available: NAT, Routed, Open, Isolated, SR-IOV Pool === 3D acceleration === virtio is a paravirtual 3D graphics driver. To enable basic 3D acceleration: # Go to a virtual machine's setting page. # Click on the "Add Hardware" button > Video > select the "Model" as "Virtio". Then remove any other "Video" virtual hardware (within the sidebar). # Go to "Display Spice" and set "Listen Type" to "None". Also tick the "OpenGL" checkbox and select the appropriate renderer. # Click on "Video Virtio" and tick "3D Acceleration". You can use ''glxgears'' from the {{Pkg|mesa-utils}} package to test the 3D graphics. {{ic|glxgears -info}} displays OpenGL renderer info in the console. == See also == * [https://virt-manager.org Project homepage] * [https://github.com/virt-manager/virt-manager Project repository] * [https://www.spice-space.org/download.html Spice drivers (graphics)] * [https://github.com/virtio-win/virtio-win-pkg-scripts/blob/master/README.md VirtIO Windows drivers]
このページで使用されているテンプレート:
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Tip
(
ソースを閲覧
)
Virt-Manager
に戻る。
検索
検索
Virt-Managerのソースを表示
話題を追加