Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: create new instance with option to modify used network #10

Open
jscotka opened this issue Feb 19, 2015 · 3 comments
Open

RFE: create new instance with option to modify used network #10

jscotka opened this issue Feb 19, 2015 · 3 comments

Comments

@jscotka
Copy link

jscotka commented Feb 19, 2015

Hi,
Now when creating new instances like: virt-deploy create f fedora-21
I'm unable to modify used network (it is created under default network)
It would be nice to have some option like --network=[default,...] to choose network definition file for usage and modifiing.
Usecase is: I would like to chnage network parameteres and affecting default network is not good option. (like add domain name, create it in various ways, and do not break created default virsh network)

Thanks&Regards
Honza 
@jscotka
Copy link
Author

jscotka commented Feb 19, 2015

It could be able to modify all default parameters from: /usr/lib/python2.7/site-packages/virtdeploy/drivers/libvirt.py somehow. I can imagine some solution via config file in ~/.virt-deploy.conf or pass config file directly to command.
It could be in some format to allow modify parameters for various vypervisors like:

~/.virt-deploy.conf:
[libvirt]
DEFAULT_NET = 'default'
DEFAULT_POOL = 'default'
BASE_FORMAT = 'qcow2'
BASE_SIZE = '20G'
INSTANCE_DEFAULTS = {
'cpus': 2,
'memory': 1024,
'arch': 'x86_64',
'network': DEFAULT_NET,
'pool': DEFAULT_POOL,
'password': None,
}

[openstack]
FLOATINGIPRANGE=...
MEMORY=
IDONTKNOW=
...

@jscotka
Copy link
Author

jscotka commented Feb 19, 2015

I've checked driver file libvirt.py and there is more thig what shoud be good to modify by config:
like:
URL of machine
uri='qemu:///system'
how crate name and where to store discs:
now it is in : name = '{0}-{1}-{2}'.format(vmid, template, kwargs['arch'])
my preferred name is name=hostname=dnsname (instead of adding fedora and arch to name)
and where to store images : now there is image = '{0}.qcow2'.format(name)

@jscotka
Copy link
Author

jscotka commented Mar 5, 2015

Hi,
here is patch what should id solved generally for all **kwards
http://fpaste.org/193812/25564644/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant