LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 10-06-2010, 03:05 PM   #1
anon1231
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 1
Security and how to create qcow2 in a non-default directory


I am hoping my problem has a simple work around, and while I welcome a work around, I really would appreciate some insight as well.

My environment is as follows:
Processor: AMD-V-64
OS: Fedora 13/64bit
Kernel Linux 2.6.34-7-56xfc13.x86_64
Virtual Machine Manager 0.8.5
virt-install --version 0.500.4
qemu-img version 0.12.5

Background:

First issue: the security question, as raised by Christopher Curran in Chapter 19.1. "Storage security issues" seems to indicate best practice is to not assign disk labels to drives, please see
http://docs.fedoraproject.org/en-US/...ecurity_issues

Second issue: the libvirt managed directory issue, raised by FedoraProject.org which identifies an issue where virt-install needs the directory to be within a libvirt managed directory, please see, https://fedoraproject.org/wiki/Test_...lization_qcow2 which reads in part, "virt-install can only create QCOW2 images in a libvirt managed directory (storage pool), so trying to create /home/foouser/myvm.qcow2 may error unless you have taught libvirt about your home directory. You can do this via virt-manager: Edit->Host Details->Storage-> '+' Button to add a directory storage pool. QCOW2 images can also be provisioned from the 'Storage' section by selecting 'New Volume'"

My Experience:

I now have off-line storage as follows:
/media/61fe4734-0621-4c49-a762-fxxxyyyzzz12/vguest/xyz.qcow2

When I try to create a qcow2 using virt-install to this directory I receive a file but with a format of raw.

When I tried to create qcow2 images on this directory via qemu-img command, I receive a qcow2 format, but when I go to install an OS, it apparently only has a small amount of storage and doesn't expand the storage as I would have expected.

I tried to add this directory to the libvirt managed directory pool but when I do this I receive the following error....

Error: Pool Parameter Error Storage object name must be a string between 0 and 50 characters

As indicated above, I am looking for a work around, so I can create useful qcow2 images in this folder but also any insight, or links to thoughtful discussions about the security concern as well as virt-install qcow2 and libvirt managed directories would be appreciated.

Finally, once this is working, can/should both raw files as well as qcow2 files reside in the same libvirt managed directory or does it even matter???

Regards,
 
Old 10-07-2010, 11:34 PM   #2
anon1231
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 1
Well I solved the mystery of the VirtMachineManager Pool Parameter Error which said the object name must be a string between 0 and 50 characters.

This is a Pool Name Parameter and I was trying to put in the full directory to the storage.

Silly Rabbit... this is just a Pool Name, give it anything you like... the next screen then asks for the location and location type.

Now that that is solved, this still leaves the qcow2 errors on the remote drive.
I had hoped by adding this remote drive as a new Pool would have enabled qcow2, but apparently it didn't
I am now renaming the VirtManager default pool to be the remote location....
I will post back later if this turns out to be the successful solution.

Regards,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backup to qcow2 (or anything VM compatible) using dd (anything) serafean Linux - Software 3 07-02-2010 02:39 AM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
Default UID / GID / Security Context for httpd root directory rioguia Linux - Security 1 05-09-2006 12:26 PM
default security context jkmartha Linux - Newbie 1 08-03-2005 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration