Overview
| Comment: | Fixed some problems found out by real deployment |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
a094bdd8da2fe33261092057cccea668 |
| User & Date: | vitus on 2017-01-23 10:56:09.766 |
| Other Links: | manifest | tags |
Context
|
2017-03-10
| ||
| 15:08 | Fixed some problems recently introduced in create. Added passing of extra args to QEMU check-in: a1e43bbc27 user: vitus tags: trunk | |
|
2017-01-23
| ||
| 10:56 | Fixed some problems found out by real deployment check-in: a094bdd8da user: vitus tags: trunk | |
|
2017-01-14
| ||
| 19:07 | Added deb rule into Makefile check-in: 0f111a30f0 user: vitus tags: trunk | |
Changes
Modified vws
from [fff489ba36]
to [bcbae58ab5].
| ︙ | ︙ | |||
178 179 180 181 182 183 184 |
if options.cdrom:
arg = " -cdrom " + os.path.abspath(options.cdrom[0])
if options.snapshot:
arg = arg+" -snapshot"
if options.args:
arg = arg + " " + "".join(options.args)
if options.password:
| | | 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
if options.cdrom:
arg = " -cdrom " + os.path.abspath(options.cdrom[0])
if options.snapshot:
arg = arg+" -snapshot"
if options.args:
arg = arg + " " + "".join(options.args)
if options.password:
os.environ["SPICE_PASSWORD"]=options.password[0]
print arg
cwd = os.getcwd()
os.chdir(options.dir)
# Check for snapshot
nxt = 0
snapshot_id = None
with os.popen("qemu-img info \"%s\"" %
|
| ︙ | ︙ | |||
584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 |
sock.close()
continue
start_opts = Namespace(machine = name,
command = 'start',
dir = machine_dir,
snapshot = False,
stopped = True,
args = "",
gui = False,
cdrom = None)
try:
cmd_start(start_opts)
print name," ",
finally:
# pylint: disable=no-member
| > | | 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 |
sock.close()
continue
start_opts = Namespace(machine = name,
command = 'start',
dir = machine_dir,
snapshot = False,
stopped = True,
password = None,
args = "",
gui = False,
cdrom = None)
try:
cmd_start(start_opts)
print name," ",
finally:
# pylint: disable=no-member
if hasattr(start_opts,"sock") and start_opts.sock:
start_opts.sock.shutdown(socket.SHUT_RDWR)
print ""
def cmd_shutdown(options):
""" Search for all running machines and stops all of them """
dirlist=[config.get("directories","AutostartVMs"),
config.get("directories","SharedVms")]
|
| ︙ | ︙ |