Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ KVM add virtual disks     - Spring + MyBatis Multi data source switching (Database)

- Linux kernel RCU (Read Copy Update) lock Brief - prequel (Linux)

- Linux System Administrator common interview questions and answers 30 (Linux)

- The three-way division of the sorting algorithm Quicksort (Programming)

- How to use tmpfs in RHEL / CentOS 7.0 (Linux)

- MySQL EXPLAIN SQL output description (Database)

- Getting Started with Java NIO (Programming)

- Ubuntu Tutorial: E: Failed to get lock / var / lib / apt / lists / lock - open (Linux)

- Mount NFS network file system (Linux)

- Shilpa Nair interview experience sharing RedHat Linux package management (Linux)

- How to override the plain text files and directories soft connection in linux (Linux)

- The difference between statement and preparedStatement of the jdbc (Database)

- C language binary tree counts words (Programming)

- About Git (Linux)

- 6 common PHP security attacks (Linux)

- Install OpenGL development environment in Fedora and Ubuntu (Linux)

- CentOS 6.6 install rsync server (Server)

- Oracle ORA-01089 failure analysis (Database)

- Ubuntu Linux to create and increase the Swap partition tutorial (Linux)

- Upgrading from Fedora 20 to 21 (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
- On the PC goes heavy security watch your startup items (Linux)
- How to use scientific data Docker quickly configure the development environment (Server)
- Generic mechanism C11 standard (Programming)
- Text editing and viewing text Linux command (Linux)
- Linux host system monitoring implement the cgi (Server)
- The easiest 11g Active DataGuard (ADG) to establish the configuration process (Database)
- How to set the default Fedora from the command line (Linux)
- The Sublime Text 3 configuration file (Linux)
- The formatted Linux hard drive and mount (Linux)
- JavaScript prototype and prototype chain and project combat (Programming)
- Try debugfs restore the deleted files ext3 file system (Linux)
- Large site architecture study notes (Server)
- OpenWrt modify flash size (Linux)
- Linux file system (inode and block) (Linux)
- PostgreSQL procedural language learning (Database)
- OpenGL shadow map (Programming)
- The user how to install Notepadqq 0.41.0 under ubuntu and debian (Linux)
- php How to prevent being injected (Linux)
- C # asynchronous delegates (Programming)
- Oracle GoldenGate Installation and Configuration Tutorial Introduction (Database)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.