Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ KVM add virtual disks     - tcpdump Linux system security tools (Linux)

- Ubuntu disable graphics card (Linux)

- Python, and / or (Programming)

- Redis application of Sina Weibo (Database)

- How to use SVN to manage our source code (Server)

- mysqldump implement database logical backup (Database)

- MultiWriter: while the ISO image concurrent writes 20 USB Startup Disk (Linux)

- STL spatial Configurator (Programming)

- CentOS 6.5 / Linux restart network card being given Determining if ip address x.x.x.x is already in use (Linux)

- Linux memory Cache Analysis (Linux)

- Help you make Git Bisect (Linux)

- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)

- SecureCRT session buffer size settings (Linux)

- The Samba service does not have permission to access (Server)

- High-performance JavaScript loops and flow control (Programming)

- DOM event handlers add notes (Programming)

- Java NIO in the world (Programming)

- Use SecureCRT to transfer files between Linux and Windows (Linux)

- Linux Getting Started tutorial: GNU C and Vim will fight the C / C ++ IDE semi-automatic (Linux)

- Linux system network security tools sudo Introduction (Linux)

  KVM add virtual disks
  Add Date : 2018-11-21      
  1. Using a graphical interface "Virtual Machine Manager" Add a Virtual Disk

2. Character interface:
Add a qcow2
 [Root @ localhost ~] # qemu-img create -f qcow2 kvm-clone.qcow2 2G
Formatting 'kvm-clone.qcow2', fmt = qcow2 size = 2147483648 encryption = off cluster_size = 65536

Add disk configuration file:
[Root @ localhost ~] # virsh edit CentOS-virt-clone
virsh edit centos-virt-clone
  < Disk type = 'file' device = 'disk'>
      < Driver name = 'qemu' type = 'qcow2' cache = 'none' />
      < Source file = '/ root / kvm-clone-add.qcow2' />
      < Target dev = 'vdb' bus = 'virtio' />
    < / Disk>

Open a virtual machine, an error occurs:
[Root @ localhost ~] # virsh start centos-virt-clone
Error: Start Domain centos-virt-clone failed
Error: internal error Process exited while reading console log output: char device redirected to / dev / pts / 2
2015-02-02T11: 13: 45.039620Z qemu-kvm: -drive file = / root / kvm-clone.qcow2, if = none, id = drive-virtio-disk3, format = qcow2, cache = none: could not open disk image /root/kvm-clone.qcow2: Permission denied

Restart "libvirtd"
vim / etc / libvir
user = "root"
# The group for QEMU processes run by the system instance. It can be
# Specified in a similar way to user.
group = "root"
dynamic_ownership = 0
[Root @ localhost ~] # /etc/init.d/libvirtd restart

Open a virtual machine:
[Root @ localhost ~] # virsh start centos-virt-clone
Domain centos-virt-clone has begun

3. Add online virtual disk:
virsh attach-disk oeltest02 /data/test02_add01.qcow2 sdb --cache = none --subdriver = qcow2
- CentOS 6.4 install and configure Squid Proxy Server (Linux)
- MySQL migration tool used in the production environment (Database)
- Go Languages Reviews (Programming)
- Ubuntu 14.10 / 14.04 / 12.04 How to install Kodi 14.0 RC3 (Linux)
- Shell commonly commands (Linux)
- About Leetcode on Binary Tree Algorithm summary (Programming)
- How to install Wine 1.7.20 under Ubuntu or Linux Mint (Linux)
- NAT and firewall under Linux (Linux)
- Eclipse-ee Tomcat browser can not start Tomcat, and Web project service deployment (Server)
- Getting Started with Linux: Learn how to upgrade Docker in Ubuntu (Server)
- Linux iptables: combat scenes (Linux)
- Kafka + Log4j log implement centralized management (Server)
- Using open source software to build XWiki Wiki system installed within the company (Linux)
- The difference between equals and == in Java (Programming)
- Docker Build a Java compiler environment (Linux)
- Build and verify MongoDB3.0.7 version (shard + replica) Cluster (Database)
- Construction CA certificate using OpenSSL command line (Server)
- apt-get and apt-cache show command examples (Linux)
- Programmer editor Vim (Linux)
- iOS constants, variables, properties and characteristics (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.